package cn.bopomo.dealer.base.exception;

public class ExceptionCode {
	/*
	 * 系统异常以1开头，第二位0表示数据层异常
	 */
	public static final int S_100000 = 100000; //数据库出错
	public static final int S_100001 = 100001; //数据库存在条件重复的记录
	public static final int S_100002 = 100002; //远程调用接口失败
	public static final int S_100003 = 100003; //远程接口校验失败
	public static final int S_100004 = 100004; //日期转换出错
	public static final int S_100005 = 100005; //保存文件失败

	
	/*
	 * 用户异常以2开头
	 */
	//相册部分
	public static final int U_200000 = 200000; //上传文件格式不符合要求
	public static final int U_200001 = 200001; //没有上传文件
	public static final int U_200002 = 200002; //系统不允许上传图片，可能相册已满
	
	//支付异常
	public static final int U_210000 = 210000; //没有找到相关的联盟推广记录 
	public static final int U_210001 = 210001; //MD校验失败
	public static final int U_210002 = 210002; //记录不存在
	public static final int U_210003 = 210003; //订单金额不符 
	public static final int U_210004 = 210004; //此渠道价格不存在
	public static final int U_210005 = 210005; //数量与价格不符合渠道要求
	public static final int U_210006 = 210006; //购买数量超出了渠道的限制
	public static final int U_210007 = 210007; //用户智买点余额不足
	public static final int U_210008 = 210008; //扣除用户智买点失败
	public static final int U_210009 = 210009; //支付失败

	
	//广东AD28活动用户异常
	public static final int U_220000 = 220000; //非活动用户
	public static final int U_220001 = 220001; //活动已结束
	public static final int U_220002 = 220002; //活动不存在
	public static final int U_220003 = 220003; //用户已退出活动
	public static final int U_220004 = 220004; //用户本月点数已赠送，本月内不再赠送。
	
	//	article部分
	public static final int U_230000 = 230000; //目录下面还包含文章，不能删除目录
	public static final int U_230001 = 230001; //用户没有登录
	public static final int U_230002 = 230002; //用户输入的参数错误
	//文章部分
	public static final int U_240000 = 240000; //篡改了传入的参数
	
	//好友部分
	public static final int U_250000 = 250000; //好友分组仍有好友存在
	public static final int U_250001 = 250001; //好友已存在好友分组
	public static final int U_250002 = 250002; //好友分组已存在
}
